import Home from '@/components/Main/index.vue'
const view = (url: string) => () => import(`@/views/${url}.vue`)

export default [
  {
    path: '/',
    name: 'home',
    component: view('login/index')
  },
  {
    path: '/1',
    name: '1',
    component: Home,
    children: [
      {
        path: '/Home',
        name: 'Home',
        component: view('Home/index')
      }
    ]
  },
  {
    path: '/2',
    name: '2',
    component: Home,
    children: [
      {
        path: '/List',
        name: 'List',
        component: view('List/index')
      }
    ]
  },
  {
    path: '/2',
    name: '2',
    component: Home,
    children: [
      {
        path: '/Tool',
        name: 'Tool',
        component: view('Tool/index')
      }
    ]
  },
  {
    path: '/3',
    name: '3',
    component: Home,
    children: [
      {
        path: '/Mine',
        name: 'Mine',
        component: view('Mine/index')
      }
    ]
  }
]
